import request from '@/utils/request'

// 查询用于记录投诉和建议的信息列表
export function listSuggestions(query) {
  return request({
    url: '/wsd_suggestions/list',
    method: 'get',
    params: query
  })
}

// 查询用于记录投诉和建议的信息详细
export function getSuggestions(suggestionsId) {
  return request({
    url: '/wsd_suggestions/' + suggestionsId,
    method: 'get'
  })
}

// 新增用于记录投诉和建议的信息
export function addSuggestions(data) {
  return request({
    url: '/wsd_suggestions',
    method: 'post',
    data: data
  })
}

// 修改用于记录投诉和建议的信息
export function updateSuggestions(data) {
  return request({
    url: '/wsd_suggestions',
    method: 'put',
    data: data
  })
}

// 删除用于记录投诉和建议的信息
export function delSuggestions(suggestionsId) {
  return request({
    url: '/wsd_suggestions/' + suggestionsId,
    method: 'delete'
  })
}
